#ifndef MAPLOADER_H
#define MAPLOADER_H

#include "common.h"

class CMapLoader
{
public:
    CMapLoader();
    ~CMapLoader();
    bool LoadMap();
    bool SaveMap();
    bool SaveTextureToFile( );

protected:
    bool LoadFromTexture(LPCTSTR filename);
    bool FillRegion( int* pData, int* pDest, int* pFlag, int maxx, int maxy, int x, int y );
    const TCHAR *CreateTileTexName( int id );
};
extern const char *pMapConfigFile;
#endif